<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Forget extends DQ_Controller 
{
    public function __construct()
    {
        parent::__construct();
    }

	public function index()
	{
        $this->load->view('user/forget');
	}

    public function reset()
    {
        $this->load->Model('user_model');
        $res = $this->user_model->checkReset();

        if($res['error'] == 0)
        {
            $this->load->view('user/reset',array('uid'=>$res['data']));
        }
        else
        {
            error_page($res['msg'],site_url('forget'));
        }
    }
}

